﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using System.IO;

namespace MT.Rest
{
    public class Program
    {
        public static void Main(string[] args)
        {
            CreateWebHostBuilder(args).Build().Run();
        }
    
        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
          //.ConfigureAppConfiguration((hostingContext, config) =>
          //{
          //    config.SetBasePath(Directory.GetCurrentDirectory());
          //    config.AddJsonFile(
          //        "Config/appsettings.json", optional: true, reloadOnChange: true);
          //})
            .UseStartup<Startup>();
    }


}
